fix(create): remove memfs runtime dependency - #501
Conversation
📝 WalkthroughWalkthroughThe create package now reuses the edge memory environment, removes ChangesCreate memory environment
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
packages/create/tests/index.test.tsParsing error: "parserOptions.project" has been provided for Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/create/src/environment.ts`:
- Around line 126-128: Update the environment.writeFileBase64 wrapper in
createDefaultEnvironment so base64:: contents are decoded before being passed to
the shared writeFileBase64 implementation, preserving decoded binary bytes in
the memory environment; alternatively, align the edge file helper semantics
consistently while retaining decoded-write behavior.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 9b01a8ab-13a5-4944-be68-c711c18d7e27
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (5)
.changeset/quiet-files-travel.mdpackages/create/package.jsonpackages/create/src/environment.tspackages/create/src/file-helpers.tspackages/create/tests/index.test.ts
Summary
memfspinned as a test-only dependencymemfsregressionsWhy
@tanstack/create's broadmemfsruntime range now pulls newly split@jsonjoy.com/fs-*packages into temporarynpxinstalls. Generated apps never use them. The CLI still needs an in-memory environment for add-to-app and custom add-on flows, but it already ships an equivalent internal implementation.Related: #329, #396, X report
Validation
pnpm buildpnpm test:unitpnpm test:e2eSummary by CodeRabbit
Improvements
@tanstack/createby removing an unnecessary runtime dependency.Tests